package com.aqielife.netty.simple.handler;

import com.aqielife.netty.simple.ImServer;
import com.aqielife.netty.simple.Response;
import io.netty.channel.ChannelHandlerContext;

public class JoinGroupHandler {
    public static void execute(ChannelHandlerContext ctx){
        ImServer.GROUP.add(ctx.channel());
        ctx.channel().writeAndFlush(Response.ok("加入群聊成功"));
    }
}
